﻿<Controls:MetroWindow x:Class="MyImdb.MainWindow"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro"
                      Title="My IMDB"
                      ShowTitleBar="True"
                      ShowIconOnTitleBar="true"
                      WindowState="Maximized"
                      Height="600"
                      Width="800"
                      Icon="imdb.ico">

    <Window.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Colours.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Fonts.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Controls.AnimatedSingleRowTabControl.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro.Resources;component/Icons.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/Red.xaml" />
                <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Window.Resources>

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="65" />
            <RowDefinition />
        </Grid.RowDefinitions>

        <StackPanel x:Name="ToolbarPanel"
                    Margin="8,-0.5,8,0.5"
                    Orientation="Horizontal"
                    VerticalAlignment="Center" Height="65">

            <Button Style="{DynamicResource MetroCircleButtonStyle}"
                    Height="65"
                    Width="65"
                    ToolTip="Home"
                    ToolTipService.Placement="Bottom"
                    Command="{Binding HomeCommand}"
                    IsEnabled="{Binding IsHomeEnabled}"
                    VerticalAlignment="Top">
                <Rectangle Width="30"
                           Height="30">
                    <Rectangle.Fill>
                        <VisualBrush Stretch="Fill"
                                     Visual="{StaticResource appbar_home}" />
                    </Rectangle.Fill>
                </Rectangle>
            </Button>

            <Button Style="{DynamicResource MetroCircleButtonStyle}"
                    Height="65"
                    Width="65"
                    ToolTip="Search Imdb"
                    ToolTipService.Placement="Bottom"
                    Command="{Binding SearchCommand}"
                    VerticalAlignment="Top">
                <Rectangle Width="30"
                           Height="30">
                    <Rectangle.Fill>
                        <VisualBrush Stretch="Fill"
                                     Visual="{StaticResource appbar_ie}" />
                    </Rectangle.Fill>
                </Rectangle>
            </Button>

            <Button Style="{DynamicResource MetroCircleButtonStyle}"
                    Height="65"
                    Width="65"
                    ToolTip="Search Local Imdb"
                    ToolTipService.Placement="Bottom"
                    Command="{Binding SearchLocalCommand}"
                    VerticalAlignment="Top">
                <Rectangle Width="30"
                           Height="30">
                    <Rectangle.Fill>
                        <VisualBrush Stretch="Fill"
                                     Visual="{StaticResource appbar_magnify}" />
                    </Rectangle.Fill>
                </Rectangle>
            </Button>

            <Button Style="{DynamicResource MetroCircleButtonStyle}"
                    Height="65"
                    Width="65"
                    ToolTip="View All"
                    ToolTipService.Placement="Bottom"
                    Command="{Binding ViewAllCommand}"
                    VerticalAlignment="Top">
                <Rectangle Width="30"
                           Height="30">
                    <Rectangle.Fill>
                        <VisualBrush Stretch="Fill"
                                     Visual="{StaticResource appbar_monitor}" />
                    </Rectangle.Fill>
                </Rectangle>
            </Button>

            <Button Style="{DynamicResource MetroCircleButtonStyle}"
                    Height="65"
                    Width="65"
                    ToolTip="Settings"
                    ToolTipService.Placement="Bottom"
                    Command="{Binding SettingsCommand}"
                    VerticalAlignment="Top">
                <Rectangle Width="30"
                           Height="30">
                    <Rectangle.Fill>
                        <VisualBrush Stretch="Fill"
                                     Visual="{StaticResource appbar_settings}" />
                    </Rectangle.Fill>
                </Rectangle>
            </Button>
        </StackPanel>

        <Controls:MetroContentControl Content="{Binding AppContent}"
                                      Grid.Row="1" />
    </Grid>

</Controls:MetroWindow>
